package se.chalmers.tda366.crumble.core.impl;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import se.chalmers.tda366.crumble.core.IArticle;
import se.chalmers.tda366.crumble.core.IFeed;


public class Feed implements IFeed, Serializable{

	private String name;
	private String source;
	private List<IArticle> articleList;
	
	public Feed(String source, String name, List<IArticle> list){
		this.name=name;
		this.source=source;
		articleList=list;
	}
	
	public Feed(String source){
		this.source=source;
		articleList = new ArrayList<IArticle>();
	}

	public List<IArticle> getArticles() {
		return articleList;
	}
	
	public void setArticles(List<IArticle> articles) {
		articleList = articles;
	}

	public String getName() {
		return name;
	}

	public String getSource() {
		return source;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public void setSource(String source) {
		this.source = source;
	}
	@Override
	public String toString() {
		return name;
	}

}
